/**
 * @ClassName LC2455
 * @Author ykx
 * @Date 2024/6/30 16:48
 * @Version 1.0
 */
public class LC2455 {
    public static void main(String[] args) {

    }

    public int averageValue(int[] nums) {
        int sum = 0, count = 0;
        for (int num : nums) {
            if (num % 6 == 0) {
                sum += num;
                count++;
            }
        }
        return count == 0 ? 0 : sum / count;
    }

}
